package cn.mymall.entity.mall;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mall_category")
public class Category extends Model {
	private static final long serialVersionUID = -3416701243018848607L;
	/**
	 * 商品分类
	 */
	@TableId(value = "id",type = IdType.AUTO)
	private Integer id;
	private String name; // 名称
	private Integer sortNum;
	private String logo;
	private Timestamp addTime;
	private Timestamp updateTime;

	public Category() {

	}
}
